﻿using Agile.Shared.Application.Registrar;
using System.Reflection;

namespace Agile.Service.Admin.Service
{
    public sealed class DependencyRegistrar : AbstractApplicationDependencyRegistrar
    {
        public override Assembly ApplicationLayerAssembly => Assembly.GetExecutingAssembly();

        public override Assembly ContractsLayerAssembly => typeof(ISysUserService).Assembly;

        public override Assembly RepositoryOrDomainLayerAssembly => typeof(EntityInfo).Assembly;

        public DependencyRegistrar(IServiceCollection services) : base(services)
        {
        }

        public override void AddAgile() => AddApplicaitonDefault();
    }
}
